﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Reflection;
using System.Diagnostics;

using System.IO;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using System.ComponentModel;

namespace TableModule
{
    [XmlInclude(typeof(TableDataPosition)), TypeConverter(typeof(ExpandableObjectConverter)), Serializable]
    public class TableDataPosition
    {
        public string strName;
        public string strDispalyName;
        public double dXPos;
        public double dYPos;
        public double dZPos;
        public double dUPos;
        public double dJumpLimited;
        public int iLocalNo;
        public string strLocal;
        public string strRemark;
        public TableDataPosition()
        {
            strLocal = "Default";
            strName = "";
            strRemark = "";
        }
        public TableDataPosition(TableDataPosition pos)
        {
            strName = pos.strName;
            strDispalyName = pos.strDispalyName;
            dXPos = pos.dXPos;
            dYPos = pos.dYPos;
            dZPos = pos.dZPos;
            dUPos = pos.dUPos;
            dJumpLimited = pos.dJumpLimited;
            strLocal = pos.strLocal;
            iLocalNo = pos.iLocalNo;
            strRemark = pos.strRemark;
        }
        public string Name
        {
            get
            {
                return strName;
            }
            set
            {
                strName = value;
            }
        }
        public double XPos
        {
            get
            {
                return dXPos;
            }
            set
            {
                dXPos = value;
            }
        }
        public double YPos
        {
            get
            {
                return dYPos;
            }
            set
            {
                dYPos = value;
            }
        }
        public double ZPos
        {
            get
            {
                return dZPos;
            }
            set
            {
                dZPos = value;
            }
        }
        public double UPos
        {
            get
            {
                return dUPos;
            }
            set
            {
                dUPos = value;
            }
        }
        public double JumpLimited
        {
            get
            {
                return dJumpLimited;
            }
            set
            {
                dJumpLimited = value;
            }
        }
        public string Remark
        {
            get
            {
                return strRemark;
            }
            set
            {
                strRemark = value;
            }
        }
        
    }
    
}
